import java.util.*;

public class CheckPalindrome {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String s = scan.nextLine();
        
        if (isPalindrome(s)) {
            System.out.println(s + " is palindrome");
        }
        else {
            System.out.println(s + " is not a palindrome");
        }
    }
    public static boolean isPalindrome(String s) {
            int low = 0;
            int high = s.length() - 1;
            
            while(low < high) {
                if (s.charAt(low) != s.charAt(high)) {
                    return false;
                }
                low++;
                high--;
            }
            
            return true;
        }
}
